import request from '@/utils/request'

enum API{
    SKULIST = '/admin/product/list/',
      //通过SKU的ID获取详情
    SKUINFO="/admin/product/getSkuById/",
    //删除SKU接口
    DELETESKU="/admin/product/deleteSku/"
}


// 获取sku列表
export const reqSkuList = (page:number,limit:number)=>request.get(API.SKULIST+`${page}/${limit}`)

//获取SKU详情的数据通过抽屉展示
export const reqSkuInfo = (skuId:number)=>request.get(API.SKUINFO+skuId);

//删除SKU的业务
export const reqDeleteSku = (skuId:number)=>request.delete(API.DELETESKU+skuId);